#include<string>
#include<functional>

class calculator
{
public:
	calculator();
	~calculator();
	double add(double a, double b);
	double sub(double a, double b);
	double mult(double a, double b);
	double div(double a, double b);
	void setName(std::string name);
	std::string getName();
	void registerCallBack(std::function<void(int)>& handler);
private:
	std::string name;
	std::function<void(int)> m_handler = nullptr;
};
